//
//  PurchaseTableViewCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/7.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "PurchaseTableViewCell.h"


@implementation PurchaseTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


//login按钮设置圆角
-(void)drawRect:(CGRect)rect{
    _promptly.layer.cornerRadius = 3;
    
    
}


- (void)setDataWithModel:(BorrowGetHome *)model
{

    _projectName.text = [NSString stringWithFormat:@"%@   %@",model.ProjectName,model.Code];
    [_LableName  setTitle:model.LableName forState:UIControlStateNormal];
    
   
    _rate.text = [NSString stringWithFormat:@"%.2f",model.Rate ];
    [_Proggress setProgress:model.Proggress/100 animated:YES];
    _proggressLable.text = [NSString stringWithFormat:@"已投%.f",model.Proggress];
    _Term.text = [NSString stringWithFormat:@"%@",model.Term];
    
   
    
}



@end
